class CreateGifts < ActiveRecord::Migration
  def self.up
    create_table :gifts do |t|
      t.column :user_id, :integer, :default => 0
      t.column :comment, :string
      t.column :item_id, :integer, :default => 0
      t.column :created_at, :timestamp
      t.column :updated_at, :timestamp
      t.column :age_id, :integer, :default => 0
      t.column :event_id, :integer, :default => 0
      t.column :rating, :integer, :default => 0
    end
  end

  def self.down
    drop_table :gifts
  end
end
